<?php

namespace app\common\model;




class GxHistory extends BaseModel
{
    protected $updateTime = false;

    public static function getList($userId,$coinId,$page=1,$limit=''){
        if(empty($limit)){
            $limit = config('paginate.list_rows');
        }
        return self::where('user_id',$userId)->where('coin_id',$coinId)->page($page,$limit)->field('id,amount,remark,status,created_at')->order('created_at','desc')->select();
    }
}
